from django.db import models
from django.utils import timezone
import time
# 模型(model)：定义数据库相关的内容，一般放在models.py文件中。
# Create your models here.

# 用户信息
class UserInfo(models.Model):
    user_id = models.CharField(max_length=32, unique=True)
    password  = models.CharField(max_length=32, default='123456')
    user_name = models.CharField(max_length=10, null=True)
    user_status = models.CharField(max_length=1, default='1')
    telephone = models.CharField(max_length=11, null=True)
    email = models.EmailField(null=True)
    address = models.CharField(max_length=32, null=True)
    group_id = models.CharField(max_length=10, null=True)
    group_name = models.CharField(max_length=32, null=True)
    open_date = models.DateField(max_length=10, null=True)
    remark = models.TextField(null=True)